home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98c.txt
/
000145_icon-group-sender _Thu Dec 17 16:32:31 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
930b
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id QAA26327
for icon-group-addresses; Thu, 17 Dec 1998 16:32:25 -0700 (MST)
Message-Id: <199812172332.QAA26327@baskerville.CS.Arizona.EDU>
Date: Thu, 17 Dec 1998 14:43:06 -0800
From: kwalker@sfo.harbinger.com (Ken Walker)
To: icon-group@optima.CS.Arizona.EDU
Subject: Re: Small Icon programming problem
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Okay, here is a slighty more obscure solution to the digit sorting
problem (the lack of comments helps make it seem even more obscure
than it is).
Ken Walker, kenneth.walker@sfo.harbinger.com
Harbinger Coporation, Concord, Ca. 94520
procedure disort(i)
local sortedInt, c
sortedInt := ""
every c := !"-123456789" do
i ? while sortedInt ||:= (tab(upto(c)), tab(many(c)))
return integer(sortedInt)
end